package cn.tedu._07springaop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCalculator {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext
        ("cn.tedu._07springaop");
        Calculator calculator = context.getBean(Calculator.class);
        calculator.add(20, 10);
        calculator.sub(20, 10);
        calculator.mul(20, 10);
        calculator.div(20, 10);
    }
}
